using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace PSE.Hosting.ServiceHoster.Business
{
    [DataContract]
    public class MessageData
    {
        public enum MessageTypes
        {
            Error = 0,
            Warning = 1,
            Success = 2
        }

        private MessageTypes _messageType;
        [DataMember]
        public MessageTypes MessageType
        {
            get { return _messageType; }
            set { _messageType = value; }
        }

        private string _text;
        [DataMember]
        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }

        public MessageData()
        {
        }

        public MessageData(MessageTypes messageType, string text)
        {
            _messageType = messageType;
            _text = text;
        }


    }
}
